#include <stdio.h>
int main()
{
	int i = 0,j = 0;
	int max = 0;
	int min = 0;

	int arr[6] = {7,4,2,8,6,5};
	max = arr[0];
	min = arr[0]; 	
	for(i = 1;i < 6;i++)
	{
		if(arr[i] > max)
			max = arr[i];
		
		if(arr[i] < min)
			min = arr[i]; 		
	}
	
	printf("%-4d",max);  
	printf("%-4d",min); 
	
	
//	for(i = 0;i < 6;i++)
//		printf("%-4d",arr[i]);  //10,4,2,8,6,5

	

		

	return 0;
}

